export default (key: string, name: string, type: string): string => {
  const initiator = "currentUser";
  return `<?xml version="1.0" encoding="UTF-8"?>
  <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="diagram_Process_1744784958927" targetNamespace="http://bpmn.io/schema/bpmn" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
    <bpmn2:process id="Process__1744784958927" name="" isExecutable="true">
      <bpmn2:startEvent id="Event_0ip773q" name="开始">
        <bpmn2:outgoing>Flow_18e1k3w</bpmn2:outgoing>
      </bpmn2:startEvent>
      <bpmn2:endEvent id="Event_0esmfad" name="结束">
        <bpmn2:incoming>Flow_0mh5z09</bpmn2:incoming>
      </bpmn2:endEvent>
      <bpmn2:sequenceFlow id="Flow_18e1k3w" sourceRef="Event_0ip773q" targetRef="Activity_0l2kcel" />
      <bpmn2:userTask id="Activity_0l2kcel" name="用户">
        <bpmn2:incoming>Flow_18e1k3w</bpmn2:incoming>
        <bpmn2:outgoing>Flow_0mh5z09</bpmn2:outgoing>
      </bpmn2:userTask>
      <bpmn2:sequenceFlow id="Flow_0mh5z09" sourceRef="Activity_0l2kcel" targetRef="Event_0esmfad" />
    </bpmn2:process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_1">
      <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process__1744784958927">
        <bpmndi:BPMNShape id="Event_0ip773q_di" bpmnElement="Event_0ip773q">
          <dc:Bounds x="182" y="302" width="36" height="36" />
          <bpmndi:BPMNLabel>
            <dc:Bounds x="189" y="345" width="22" height="14" />
          </bpmndi:BPMNLabel>
        </bpmndi:BPMNShape>
        <bpmndi:BPMNShape id="Event_0esmfad_di" bpmnElement="Event_0esmfad">
          <dc:Bounds x="482" y="302" width="36" height="36" />
          <bpmndi:BPMNLabel>
            <dc:Bounds x="489" y="345" width="22" height="14" />
          </bpmndi:BPMNLabel>
        </bpmndi:BPMNShape>
        <bpmndi:BPMNShape id="Activity_0l2kcel_di" bpmnElement="Activity_0l2kcel">
          <dc:Bounds x="310" y="280" width="100" height="80" />
          <bpmndi:BPMNLabel />
        </bpmndi:BPMNShape>
        <bpmndi:BPMNEdge id="Flow_18e1k3w_di" bpmnElement="Flow_18e1k3w">
          <di:waypoint x="218" y="320" />
          <di:waypoint x="310" y="320" />
        </bpmndi:BPMNEdge>
        <bpmndi:BPMNEdge id="Flow_0mh5z09_di" bpmnElement="Flow_0mh5z09">
          <di:waypoint x="410" y="320" />
          <di:waypoint x="482" y="320" />
        </bpmndi:BPMNEdge>
      </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
  </bpmn2:definitions>
  `;
};
